import java.util.Arrays;
import java.util.Scanner;

public class wuaoyu04 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入成绩");
        double score=sc.nextDouble();
        if(90.0<=score&&score<=100.0) {
            System.out.println("您的成绩较为优秀");
        }
        if(80<=score&&score<=89) {
            System.out.println("您的成绩为良好");
        }
        if(70<=score&&score<=79) {
            System.out.println("您的成绩为中等");
        }
        if(60<=score&&score<=69) {
            System.out.println("您的成绩为及格");
        }
        if(60>=score) {
            System.out.println("您的成绩为不及格");
        }
    }
}
class wuaoyu05{
    public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
        System.out.println("请输入三个数字");
        int a= sc.nextInt();
        int b= sc.nextInt();
        int c= sc.nextInt();
        int m=0;
        if (a >b) {
            m=a;
        }
        if (a<b) {
            m=b;
        }
        if (m >c) {
            System.out.println("最大的数值："+m);

        }else {
            m=c;
            System.out.println("最大的数值："+m);
        }
    }
}
class wuaoyu06{
    public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
        System.out.println("请输入三个整数");
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
         int[] arr1=new int[3];
         arr1[0]=a;
         arr1[1]=c;
         arr1[2]=b;
        Arrays.sort(arr1);
        System.out.println("排序后的结果"+Arrays.toString(arr1));
    }
}
class wuaoyu07{
    public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
        System.out.println("请输入阶乘数：");
        int n= sc.nextInt();
        int result=1;
        //while循环
        while (n > 1) {
            result *= n;
            n--;
        }
        System.out.println("结果："+result);
        //for循环
        for (int i = n; i <n ; i--) {
            result*=n;
        }
        System.out.println("结果："+result);
        //do while 循环
        do {
            result *= n;
            n--;
        } while (n > 1);
        System.out.println("结果："+result);
    }
}
class wuaoyu08{
    public static void main(String[] args) {
        int sum = 0;
        int i = 1;
        while (i < 100) {
            sum += i;
            i += 2;
        }
        System.out.println("100以内奇数的和：" + sum);

        int x = 0;
        int y = 1;
        do {
            x += y;
            y += 2;
        } while (y< 100);
        System.out.println("100以内奇数的和：" + x);
        int m = 0;
        for (int k = 1; k < 100; k += 2) {
            m += k;
        }
        System.out.println("100以内奇数的和：" + m);

    }
}


